<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
	<c:set var="id" value="${item.id}" />
	<p>item id: <c:out value="${id}"/></p>
	<form action="save.action">
		<c:if test="${item.id != null && item.id != 0}">
			<div> id:<input type="text" name="item.id" value="${item.id}" readonly="true"></div>
		</c:if>
		
		<div>
			name:<input type="text" name="item.name" value="${item.name}">
		</div>
		<div>
			desc:<input type="text" name="item.price" value="${item.price}">
		</div>
		<div>
			<input type="submit" value="save">
		</div>
	</form>
	
	<script type="text/javascript">
		window.onload=function() {
			//alert("${item.id}");
		}
	</script>
</body>
</html>